
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
    <title>可用可信家庭市场</title>
    <!--                       CSS                       -->
    <!-- Reset Stylesheet -->
    <link rel="stylesheet" href="/static/css/reset.css" type="text/css" media="screen" />
    <!-- Main Stylesheet -->
    <link rel="stylesheet" href="/static/css/style.css" type="text/css" media="screen" />
    <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
    <link rel="stylesheet" href="/static/css/invalid.css" type="text/css" media="screen" />
    <!--                       Javascripts                       -->
    <!-- jQuery -->
    <script type="text/javascript" src="/static/scripts/jquery-1.3.2.min.js"></script>
    <!-- jQuery Configuration -->
    <script type="text/javascript" src="/static/scripts/simpla.jquery.configuration.js"></script>
    <!-- Facebox jQuery Plugin -->
    <script type="text/javascript" src="/static/scripts/facebox.js"></script>
    <!-- jQuery WYSIWYG Plugin -->
    <script type="text/javascript" src="/static/scripts/jquery.wysiwyg.js"></script>
    <!-- jQuery Datepicker Plugin -->
    <script type="text/javascript" src="/static/scripts/jquery.datePicker.js"></script>
    <script type="text/javascript" src="/static/scripts/jquery.date.js"></script>
    <!-- jQuery -->
    <link rel="stylesheet" type="text/css" media="all" href="/static/css/motai.css">
    <script type="text/javascript" src="/static/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/static/js/jquery.leanModal.min.js"></script>
    <style>
        body{
            font-family:黑体;
        }
        :after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}
        .dashboard-tile.detail, .dashboard-tile.header {
            position: relative;
            overflow: hidden;
        }

        .dashboard-tile.tile-red {
            background-color: #e84c3d;
            color: #fff;
            height:110px;
            width:300px;
        }
        .dashboard-tile.tile-turquoise {
            background-color: #1abc9c;
            color: #fff;
            height:110px;
            width:300px;
        }
        .dashboard-tile.tile-purple {
            background-color: #9a59b5;
            color: #fff;
            height:110px;
            width:300px;
        }
        .dashboard-tile {
            background-color: #fff;
            color: #555;
            margin-bottom: 15px;
            padding: 10px;
            -webkit-border-radius: 3px;
            -moz-border-radius: 3px;
            -ms-border-radius: 3px;
            -o-border-radius: 3px;
            border-radius: 3px;
        }
        .big{
            width:350px;
            height:140px;
            float:left;
        }
        .text-left {
            text-align: left;
        }
    </style>
</head>
<body>
<div id="body-wrapper">
    <!-- Wrapper for the radial gradient background -->
    <div id="sidebar">
        <div id="sidebar-wrapper">

            <div id="profile-links">
                <!-- Logo (221px wide) -->
                <a href="#"><img id="logo" src="/static/images/logo.png" alt="Simpla Admin logo" /></a>

                {$_COOKIE['user_name']},你好 <br/>
                | <a href="/index.php/index/index/uexit" title="Sign Out">退出</a> </div>

            <ul id="main-nav">
                <!-- Accordion Menu -->
                <!--<li> <a href="#/" class="nav-top-item no-submenu">-->
                    <!--&lt;!&ndash; Add the class "no-submenu" to menu items with no sub menu &ndash;&gt;-->
                    <!--Dashboard </a> </li>-->
                 {if condition="!empty($powers['order_action'])"}
                <li> <a href="#" class="nav-top-item"> 订单操作</a>
                    <ul>
                    	
                        <li><a href="/index.php/index/index/neworder_list">新订单</a></li>
                        <!-- Add class "current" to sub menu items also -->
                        <li><a href="/index.php/index/index/addorder">创建新订单</a></li>
                        <li><a href="/index.php/index/index/allorder_list">所有订单</a></li>
                    </ul>
                </li>
           	{/if}
           	 {if condition="!empty($powers['cg_action'])"}
                <li> <a href="#" class="nav-top-item"> 采购单 </a>
                    <ul>
                        <li><a href="/index.php/index/index/newcg_list">待处理 采购单</a></li>
                        <li><a href="/index.php/index/index/cg_history">采购单历史</a></li>
                    </ul>
                </li>
             {/if}
              {if condition="!empty($powers['table_action'])"}
                <li> <a href="#" class="nav-top-item"> 报表 </a>
                    <ul>
                        <li><a href="/index.php/index/biao/daybiao">日报表</a></li>
                        <li><a href="/index.php/index/biao/yuebiao">月报表</a></li>
                        <li><a href="/index.php/index/biao/nianbiao">年报表</a></li>
                    </ul>
                </li>
               {/if}
                {if condition="!empty($powers['goods_action'])"}
                <li> <a href="#" class="nav-top-item  current">菜品管理 </a>
                    <ul>
                        <li><a href="/index.php/index/goods/goods">所有菜品</a></li>
                        <li><a class="current" href="/index.php/index/goods/categorys">所有分类</a></li>
                    </ul>
                </li>
                {/if}
                 {if condition="!empty($powers['promotion_action'])"}
                 <li> <a href="#" class="nav-top-item"> 推广活动 </a>
                    <ul>
                        <li><a href="/index.php/index/promotion/snlist">SN优惠码</a></li>
                    </ul>
                </li>
                {/if}
                <li> <a href="#" class="nav-top-item"> 个人信息 </a>
                    <ul>
                        <li><a href="/index.php/index/index/user_info">查看信息</a></li>
                        <li><a href="/index.php/index/index/update_pass">修改密码</a></li>
                    </ul>
                </li>
       
                {if condition="!empty($powers['super'])"}
                 <li><a href="#" class="nav-top-item"> 用户管理 </a>
                 	<ul>
                        <li><a href="/index.php/index/admin/user_admin">用户权限</a></li>
                    </ul>
                 </li>
                {/if}

            </ul>
            <!-- End #main-nav -->


        </div>
    </div>
    <!-- End #sidebar -->
    <div id="main-content">
        <!-- Main Content Section with everything -->
        <noscript>
            <!-- Show a notification if the user has disabled javascript -->
            <div class="notification error png_bg">
                <div> Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
                    Download From <a href="http://www.exet.tk">exet.tk</a></div>
            </div>
        </noscript>
        <!-- Page Head -->
   
        <!-- End .clear -->
        <div class="content-box">
            <!-- Start Content Box -->
            <div class="content-box-header">
                <h3>添加新分类</h3>
            </div>
            <!-- End .content-box-header -->
            <div class="content-box-content">
                <div class="tab-content default-tab" id="tab1">
					<form action="/index.php/index/goods/category_add2" method="post">
                    <table class="table1" style="width:400px;font-size:15px;line-height:50px;">
                        <tbody>
                        <tr>
                        	<td>分类名</td>
                        	<td><input type="text" name="gcat_name" value="" /></td>
                        </tr>
                        <tr>
                        	<td>拼音名</td>
                        	<td><input type="text" name="gcat_pinyin" value="" /></td>
                        </tr>
                        <tr>
                        	<td>排序</td>
                        	<td><input type="text" name="gcat_sort" value="" /></td>
                        </tr>
                        
  					</tbody>
                    </table>
                    <input type="submit" class="button medium back" value="提交" />
                    </form>
                </div>
                <!-- End #tab1 -->

            </div>
            <!-- End .content-box-content -->
        </div>
        <!-- End .content-box -->



    </div>
    <!-- End #main-content -->
</div>

<script>

    function delc(e)

    {
        //利用对话框返回的值 （true 或者 false）

        if(confirm("你确定要删除该分类？"))

        {
            //如果是true ，那么就把页面转向thcjp.cnblogs.com
            location.href="/index.php/index/goods/category_delete/gcat_id/"+e;
        }

        else

        {

            //否则说明下了，赫赫
           // return false;
            location.href="";
        }

    }


</script>


</body>
</html>
